﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaskBook_Modify.aspx.cs" Inherits="Admin.WorkFlow.FormTable.TaskBook.TaskBook_Modify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/Themes/Default/Css/Style.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="/Components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Jscript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Jscript/CheckBox.js" type="text/javascript"></script>
    <script src="/Components/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="/Jscript/midsoft.js" type="text/javascript"></script>
    <title>修改项目任务书</title>
</head>
<body>
    <form id="form1" runat="server">
    <p align="center" style="font-size:18px; font-weight:bold; height:30px;">修改项目任务书</p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    <table cellspacing="0" cellpadding="0" width="950" border="1" bordercolordark="white"
                    bordercolorlight="#b7c9e9" style="padding-left: 3px">
        <tr  class="taskbooktd">
            <td align="right">
                综合字（<asp:TextBox ID="txtMainNumber" runat="server" Width="60px"></asp:TextBox> ）</td>
            <td colspan="3">
                第（<asp:TextBox ID="txtSubNumber" runat="server" Width="100px"></asp:TextBox>
                ）号</td>
            <td colspan="2" align="center">
                <input 
                    id="txtIssueTime" class="Wdate" type="text" onclick="WdatePicker()" 
                    runat="server" readonly="readonly" />签发</td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                项目名称：</td>
            <td colspan="5">
                <asp:Label ID="lblProjectName" runat="server"></asp:Label>
            </td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                委托单位：</td>
            <td colspan="5">
                <asp:Label ID="lblCustomer" runat="server"></asp:Label>
            </td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                项目类别：</td>
            <td colspan="2">
                <asp:RadioButton ID="rbtnA" runat="server" Text="A" Checked="True" 
                    GroupName="ProjectType" ValidationGroup="ProjectType" />
                <asp:RadioButton ID="rbtnB" runat="server" Text="B" GroupName="ProjectType" 
                    ValidationGroup="ProjectType" />
            </td>
            <td align="right">
                任务依据：</td>
            <td colspan="2">
                <asp:DropDownList ID="ddlIssue" runat="server" Width="83px">
                    <asp:ListItem Value="0">委托</asp:ListItem>
                    <asp:ListItem Value="1">非委托</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                承接部门：</td>
            <td>
                <asp:DropDownList ID="ddlUnderTakeDepartment" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
            <td align="right">
                项目编号：</td>
            <td>
                <asp:Label ID="lblProjectNumber" runat="server"></asp:Label>
                <br />
            </td>
            <td align="right">
                合同金额：</td>
            <td>
                <asp:TextBox ID="txtContractMoney" runat="server" Width="125px"></asp:TextBox>
                元</td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                主办部门：</td>
            <td>
                <asp:DropDownList ID="ddlMainDepartment" runat="server" Width="150px" 
                    onselectedindexchanged="ddlMainDepartment_SelectedIndexChanged" 
                    AutoPostBack="True">
                </asp:DropDownList>
                <asp:HiddenField ID="HidMainXieBanDepartMent" runat="server" />
            </td>
            <td align="right">
                项目负责人：</td>
            <td>
                <asp:Label ID="lblMainMen" runat="server"></asp:Label>
                <br />
                <asp:DropDownList ID="ddlMainMan" runat="server" Width="100px">
                </asp:DropDownList>
                <asp:Button ID="btnMainUserAdd" runat="server" Text="添加" 
                    onclick="btnMainUserAdd_Click" />
                <asp:Button ID="btnMainUserDel" runat="server" Text="删除" 
                    onclick="btnMainUserDel_Click" />
            </td>
            <td align="right">
                产值：</td>
            <td>
                <asp:TextBox ID="txtMainMoney" runat="server" Width="125px"></asp:TextBox>
                元</td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                协办部门：</td>
            <td colspan="5">
                                <input type="button" value="添加" class="inputbutton"  onclick="javascript:openSubDepartMent('添加协办部门','/WorkFlow/FormTable/SubDepartMent/SubDepartMent_Mange2.aspx?OrganizeId=<%=Request.QueryString["OrganizeId"] %>&&TaskBookId=<%=Request.QueryString["id"] %>',900,300);" />
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                    Text="刷新协办部门信息" />
                <br /><asp:GridView ID="GridView1" 
                    runat="server" AutoGenerateColumns="False" Width="685px" 
                    DataKeyNames="XieBanId" onrowdatabound="GridView1_RowDataBound" 
                    onrowdeleting="GridView1_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="DepartMentName" HeaderText="部门名称" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="项目负责人">
                            <ItemTemplate>
                                <asp:Label ID="lblProjectMan" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="OutPut" HeaderText="产值" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:CommandField HeaderText="操作" ShowDeleteButton="True">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:CommandField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                            <a href="javascript:void(0);" onclick="javascript:openSubDepartMent('编辑协办部门信息','/WorkFlow/FormTable/SubDepartMent/SubDepartMent_Modify.aspx?OrganizeId=<%=Request.QueryString["OrganizeId"] %>&&id=<%#Eval("XieBanId") %>',900,400);">编辑</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <br />
            </td>
        </tr>
        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        <tr  class="taskbooktd">
            <td align="right">
                设计阶段：</td>
            <td colspan="5">
                （<asp:CheckBox ID="CheckBox1" runat="server" Text="项目建议书" 
                    ValidationGroup="CheckStage" />
                <asp:CheckBox ID="CheckBox2" runat="server" Text="预可" 
                    ValidationGroup="CheckStage" />
                <asp:CheckBox ID="CheckBox3" runat="server" Text="工可" 
                    ValidationGroup="CheckStage" />
                <asp:CheckBox ID="CheckBox4" runat="server" Text="项目申请报告" 
                    ValidationGroup="CheckStage" />
                <asp:CheckBox ID="CheckBox5" runat="server" Text="方案设计" 
                    ValidationGroup="CheckStage" />
                ）（<asp:CheckBox ID="CheckBox6" runat="server" Text="初步设计" 
                    ValidationGroup="CheckStage" />
                <asp:CheckBox ID="CheckBox7" runat="server" Text="施工图设计" 
                    ValidationGroup="CheckStage" />
                ）（<asp:CheckBox ID="CheckBox8" runat="server" Text="规划咨询" 
                    ValidationGroup="CheckStage" />
                ）（<asp:CheckBox ID="CheckBox9" runat="server" Text="试验检测" 
                    ValidationGroup="CheckStage" />
                ）（<asp:CheckBox ID="CheckBox10" runat="server" Text="科研" 
                    ValidationGroup="CheckStage" />
                ）</td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                经办人：</td>
            <td colspan="2">
                <asp:DropDownList ID="ddlJingBanMan" runat="server" Width="100px">
                </asp:DropDownList>
            </td>
            <td align="right">
                生产发展部：</td>
            <td colspan="2">
                <asp:DropDownList ID="ddlMakeDevelop" runat="server" Width="83px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                总工程师室：</td>
            <td colspan="2">
                <asp:DropDownList ID="ddlEngieer" runat="server" Width="100px">
                </asp:DropDownList>
            </td>
            <td align="right">
                分管院长：</td>
            <td colspan="2">
                <asp:DropDownList ID="ddlYuanZhang" runat="server" Width="83px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                工期要求：</td>
            <td colspan="5">
                在<input 
                    id="txtEndTime" class="Wdate" type="text" onclick="WdatePicker()" 
                    runat="server" readonly="readonly" /><asp:TextBox ID="txtEndTimeDescription" 
                    runat="server"></asp:TextBox>
                之前完成</td>
        </tr>
        <tr  class="taskbooktd">
            <td align="right">
                备注：</td>
            <td colspan="5">
                <asp:TextBox ID="txtDescription" runat="server" Width="700px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdbg" align="center" valign="bottom" colspan="6">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" class="inputbutton"
                    onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'">
                </asp:Button>
                <input type="button" value="关闭" class="inputbutton" onmouseover="this.className='inputbutton_hover'"
                    onmouseout="this.className='inputbutton'" onclick="javascript:window.parent.$('#DivSysiframe').dialog('close');" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
